package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by ChenYong on 2017-05-24.
 * <br>
 * 月份请求参数。
 */
public class MonthParam {
    /**
     * 月份
     */
    @NotBlank(message = "月份不能为空")
    @Pattern(regexp = Constants.DATE_2_RE, message = "月份格式不正确")
    private String month;

    /**
     * 默认构造器。
     */
    public MonthParam() {
        super();
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("MonthParam{");
        sb.append("month='").append(month).append('\'');
        sb.append('}');
        return sb.toString();
    }
}